﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace lucky_dog_backend.Models
{   public class TableInfo
    {
        [JsonProperty("id")]
        public string Id { get; set; }
        [JsonProperty("title")]
        public string Title { get; set; }
        [JsonProperty("dataCount")]
        public int DataCount { get; set; }
        public TableInfo(string id,string title,int dataCount)
        {
            Id = id;Title = title;DataCount = dataCount;
        }
    }
    public class UserDTO
    {
        [JsonProperty("id")]
        public string Id { get; set; }
        [JsonProperty("account")]
        public string Account { get; set; }
        [JsonProperty("email")]
        public string Email { get; set; }
        [JsonProperty("tableInfoList")]
        public List<TableInfo> TableInfoList { get; set; }
        public UserDTO(string id,string account,string email,List<TableInfo> tableInfoList)
        {
            Id = id;
            Account = account;
            Email = email;
            TableInfoList = tableInfoList;
        }
    }
}
